<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($smile_id = $route->getAdminId())
	$db->sendQuery("delete from `smiles` where `smile_id` = '$smile_id' limit 1");

goToPage("/admin/smiles");
?>